#include <fstream>
#include <utility>
#include "fileDefine.h"
#include "AttributeProxy.h"

class StrmBMP_reader
{
  public:
    StrmBMP_reader(const std::string& filePath);
    virtual ~StrmBMP_reader();
    fileHead GetFileHead();

    void BeginReadBMP();
    std::pair<imageBlockHead,char*> GetImageFrame();

    void BeginReadAdditional();
    additionalBlockHead GetAdditionalFrame();

    long GetImageSize();  //获取图像数量
  private:
    std::ifstream file;
    fileHead fileHead_;
};
